package qdf.app.view.activity

import com.alibaba.android.arouter.facade.annotation.Route
import com.base.core.BaseModuleActivity
import com.lib.base.router.app.AppPath
import com.lib.base.utils.data.SPUtils
import kotlinx.android.synthetic.main.app_activity_main.*
import qdf.app.R

@Route(path = AppPath.MAIN, extras = 101)
class MainActivity : BaseModuleActivity() {
    /**  布局id---2019-06-13 */
    override val layoutId: Int? = R.layout.app_activity_main

    /**获取数据*/
    override fun getData() {
    }

    override fun initView() {
        super.initView()
        getData()

        login.setOnClickListener {
            SPUtils.saveBoolean("isLogin", !SPUtils.getBoolean("isLogin", false))
        }
    }
}